package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.domain.entity.Type;
import com.example.exception.FloraException;

import java.util.List;


/**
 * (Type)表服务接口
 *
 * @author makejava
 * @since 2022-12-03 14:47:22
 */
public interface TypeService extends IService<Type> {
    IPage<Type> getTypePage(String name, Integer pageNum, Integer pageSize);

    List<Type> getTypeList();

    Type addType(Type type) throws FloraException;

    void updateTypeCommon(Type type) throws FloraException;

    void deleteType(Long id) throws FloraException;

    void updateTypeStatus(Type type) throws FloraException;
}

